import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class WithdrawalRecordPage extends StatefulWidget {
  const WithdrawalRecordPage({super.key});

  @override
  State<WithdrawalRecordPage> createState() => _WithdrawalRecordPageState();
}

class _WithdrawalRecordPageState extends State<WithdrawalRecordPage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: BrnAppBar(title: '提现', backgroundColor: Colors.white),
      backgroundColor: Colors.white,
      body: Container(
        color: Colors.transparent,
        child: ListView.builder(
          itemBuilder: (BuildContext cxt, int index) {
            return _buildPriceInfoWarpper();
          },
          itemCount: 5,
        ),
      ),
    );
  }

  Container _buildPriceInfoWarpper() {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 19.w, vertical: 10),
      margin: EdgeInsets.only(top: 0.h, left: 12, right: 12),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text('可提现金额', style: TextStyle(fontSize: 15.sp, color: Colors.black, fontWeight: FontWeight.w600)),
              Text('1000.00', style: TextStyle(fontSize: 18.sp, color: Colors.black)),
            ],
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text('申请状态', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
                Text('处理中', style: TextStyle(fontSize: 13.sp, color: const Color(0xFF25D4D0))),
              ],
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text('账户信息', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
                Text('张三[15127167604]', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
              ],
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text('提现单号', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
                Text('TX202412230001231', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
              ],
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text('手续费', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
                Text('10.00', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
              ],
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text('申请时间', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
                Text('2024-12-23 12:23:11', style: TextStyle(fontSize: 13.sp, color: const Color(0XFF999999))),
              ],
            ),
          ),
          Container(margin: const EdgeInsets.only(top: 15), height: 0.5, color: const Color(0XFFEEEEEE)),
        ],
      ),
    );
  }
}
